package view;

import javax.swing.BorderFactory;
import javax.swing.DefaultComboBoxModel;
import javax.swing.GroupLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

public class ProAddPanel extends JPanel {
	private static final long serialVersionUID = 1L;
	private JLabel emView_lblEmail10;
	private JLabel emView_lblEmail11;
	private JLabel emView_lblEmail2;
	private JLabel emView_lblEmail3;
	private JLabel emView_lblEmail;
	private JLabel lblPuschasePrice_AddPro;
	private JLabel lblID_AddPro;
	private JLabel lblBattery_AddPro;
	private JLabel lblRAM_AddPro;
	private JLabel lblCPU_AddPro;
	private JLabel lblScreen_AddPro;
	private JLabel lblSdcard_AddPro;
	private JLabel lblCamera_AddPro;
	private JLabel lblDate_AddPro;
	private JLabel lblSalePrice_AddPro;
	private JLabel lblQuantity_AddPro;
	private JLabel lblName_AddPro;
	private JLabel lblSupplier_AddPro;
	private JTextField tfQuantity_AddPro;
	private JTextField tfID_AddPro;
	private JTextField tfSdcard_AddPro;
	private JTextField tfName_AddPro;
	private JTextField tfBattery_AddPro;
	private JTextField tfPuschasePrice_AddPro;
	private JTextField tfSalePrice_AddPro;
	private JTextField tfRAM_AddPro;
	private JTextField tfCPU_AddPro;
	private JTextField tfScreen_AddPro;
	private JTextField tfCamera_AddPro;
	private JButton btnLoad_AddPro;
	private JButton btnCancel_AddPro;
	private JButton btnAdd_AddPro;
	private JComboBox<String> cbbSupplier_AddPro;
	private JComboBox<String> cbbDay_AddPro;
	private JComboBox<String> cbbMonth_AddPro;
	private JComboBox<String> cbbYear_AddPro;
	private JComboBox<String> cbbRAM_AddPro;
	private JPanel panelDetail_AddPro;
	private JPanel panelInfor_AddPro;
	private JPanel panelLoadImage_AddPro;

	public ProAddPanel() {
		initComponents();
	}

	@SuppressWarnings({ "rawtypes", "unchecked" })
	private void initComponents() {

		panelInfor_AddPro = new JPanel();
		lblSupplier_AddPro = new JLabel();
		lblName_AddPro = new JLabel();
		lblDate_AddPro = new JLabel();
		emView_lblEmail = new JLabel();
		lblPuschasePrice_AddPro = new JLabel();
		tfQuantity_AddPro = new JTextField();
		tfID_AddPro = new JTextField();
		tfName_AddPro = new JTextField();
		tfPuschasePrice_AddPro = new JTextField();
		panelLoadImage_AddPro = new JPanel();
		btnLoad_AddPro = new JButton();
		lblSalePrice_AddPro = new JLabel();
		tfSalePrice_AddPro = new JTextField();
		lblID_AddPro = new JLabel();
		emView_lblEmail2 = new JLabel();
		cbbSupplier_AddPro = new JComboBox();
		lblQuantity_AddPro = new JLabel();
		cbbDay_AddPro = new JComboBox();
		cbbMonth_AddPro = new JComboBox();
		cbbYear_AddPro = new JComboBox();
		panelDetail_AddPro = new JPanel();
		emView_lblEmail3 = new JLabel();
		lblBattery_AddPro = new JLabel();
		lblRAM_AddPro = new JLabel();
		lblCPU_AddPro = new JLabel();
		lblScreen_AddPro = new JLabel();
		lblSdcard_AddPro = new JLabel();
		tfBattery_AddPro = new JTextField();
		tfRAM_AddPro = new JTextField();
		tfCPU_AddPro = new JTextField();
		tfScreen_AddPro = new JTextField();
		tfCamera_AddPro = new JTextField();
		tfSdcard_AddPro = new JTextField();
		lblCamera_AddPro = new JLabel();
		emView_lblEmail10 = new JLabel();
		emView_lblEmail11 = new JLabel();
		cbbRAM_AddPro = new JComboBox();
		btnCancel_AddPro = new JButton();
		btnAdd_AddPro = new JButton();

		setBackground(new java.awt.Color(255, 255, 255));
		setLayout(null);

		panelInfor_AddPro.setBackground(new java.awt.Color(255, 255, 255));
		panelInfor_AddPro.setBorder(BorderFactory.createTitledBorder(null, "Information",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12)));
		panelInfor_AddPro.setLayout(null);

		lblSupplier_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblSupplier_AddPro.setText("Supplier:");
		panelInfor_AddPro.add(lblSupplier_AddPro);
		lblSupplier_AddPro.setBounds(300, 90, 70, 20);

		lblName_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblName_AddPro.setText("Product Name:");
		panelInfor_AddPro.add(lblName_AddPro);
		lblName_AddPro.setBounds(300, 60, 95, 20);

		lblDate_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblDate_AddPro.setText("Date:");
		panelInfor_AddPro.add(lblDate_AddPro);
		lblDate_AddPro.setBounds(300, 210, 90, 20);

		emView_lblEmail.setFont(new java.awt.Font("Calibri", 0, 16));
		emView_lblEmail.setText("VND");
		panelInfor_AddPro.add(emView_lblEmail);
		emView_lblEmail.setBounds(590, 150, 30, 20);

		lblPuschasePrice_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblPuschasePrice_AddPro.setText("Puschase Price:");
		panelInfor_AddPro.add(lblPuschasePrice_AddPro);
		lblPuschasePrice_AddPro.setBounds(300, 120, 110, 20);
		panelInfor_AddPro.add(tfQuantity_AddPro);
		tfQuantity_AddPro.setBounds(430, 180, 190, 20);
		panelInfor_AddPro.add(tfID_AddPro);
		tfID_AddPro.setBounds(430, 30, 190, 20);
		panelInfor_AddPro.add(tfName_AddPro);
		tfName_AddPro.setBounds(430, 60, 190, 20);
		panelInfor_AddPro.add(tfPuschasePrice_AddPro);
		tfPuschasePrice_AddPro.setBounds(430, 120, 150, 20);

		GroupLayout jPanel5Layout = new GroupLayout(panelLoadImage_AddPro);
		panelLoadImage_AddPro.setLayout(jPanel5Layout);
		jPanel5Layout.setHorizontalGroup(jPanel5Layout.createParallelGroup(
				GroupLayout.Alignment.LEADING).addGap(0, 190, Short.MAX_VALUE));
		jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(
				GroupLayout.Alignment.LEADING).addGap(0, 160, Short.MAX_VALUE));

		panelInfor_AddPro.add(panelLoadImage_AddPro);
		panelLoadImage_AddPro.setBounds(50, 20, 190, 160);

		btnLoad_AddPro.setText("Load");
		panelInfor_AddPro.add(btnLoad_AddPro);
		btnLoad_AddPro.setBounds(110, 190, 60, 23);

		lblSalePrice_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblSalePrice_AddPro.setText("Sale Price:");
		panelInfor_AddPro.add(lblSalePrice_AddPro);
		lblSalePrice_AddPro.setBounds(300, 150, 90, 20);
		panelInfor_AddPro.add(tfSalePrice_AddPro);
		tfSalePrice_AddPro.setBounds(430, 150, 150, 20);

		lblID_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblID_AddPro.setText("ID:");
		panelInfor_AddPro.add(lblID_AddPro);
		lblID_AddPro.setBounds(300, 30, 50, 20);

		emView_lblEmail2.setFont(new java.awt.Font("Calibri", 0, 16));
		emView_lblEmail2.setText("VND");
		panelInfor_AddPro.add(emView_lblEmail2);
		emView_lblEmail2.setBounds(590, 120, 30, 20);

		cbbSupplier_AddPro.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor_AddPro.add(cbbSupplier_AddPro);
		cbbSupplier_AddPro.setBounds(430, 90, 190, 20);

		lblQuantity_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblQuantity_AddPro.setText("Quantity:");
		panelInfor_AddPro.add(lblQuantity_AddPro);
		lblQuantity_AddPro.setBounds(300, 180, 90, 20);

		cbbDay_AddPro.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor_AddPro.add(cbbDay_AddPro);
		cbbDay_AddPro.setBounds(430, 210, 56, 20);

		cbbMonth_AddPro.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor_AddPro.add(cbbMonth_AddPro);
		cbbMonth_AddPro.setBounds(490, 210, 60, 20);

		cbbYear_AddPro.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelInfor_AddPro.add(cbbYear_AddPro);
		cbbYear_AddPro.setBounds(560, 210, 56, 20);

		add(panelInfor_AddPro);
		panelInfor_AddPro.setBounds(0, 0, 680, 240);

		panelDetail_AddPro.setBackground(new java.awt.Color(255, 255, 255));
		panelDetail_AddPro.setBorder(BorderFactory.createTitledBorder(null, "Detail",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, new java.awt.Font("Calibri", 1,
						12)));
		panelDetail_AddPro.setLayout(null);

		emView_lblEmail3.setFont(new java.awt.Font("Calibri", 0, 16));
		emView_lblEmail3.setText("mAh");
		panelDetail_AddPro.add(emView_lblEmail3);
		emView_lblEmail3.setBounds(580, 90, 30, 20);

		lblBattery_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblBattery_AddPro.setText("Battery:");
		panelDetail_AddPro.add(lblBattery_AddPro);
		lblBattery_AddPro.setBounds(340, 90, 70, 20);

		lblRAM_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblRAM_AddPro.setText("RAM:");
		panelDetail_AddPro.add(lblRAM_AddPro);
		lblRAM_AddPro.setBounds(30, 60, 50, 20);

		lblCPU_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblCPU_AddPro.setText("CPU:");
		panelDetail_AddPro.add(lblCPU_AddPro);
		lblCPU_AddPro.setBounds(30, 90, 50, 20);

		lblScreen_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblScreen_AddPro.setText("Screen:");
		panelDetail_AddPro.add(lblScreen_AddPro);
		lblScreen_AddPro.setBounds(30, 30, 50, 20);

		lblSdcard_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblSdcard_AddPro.setText("SD Card:");
		panelDetail_AddPro.add(lblSdcard_AddPro);
		lblSdcard_AddPro.setBounds(340, 60, 70, 20);
		panelDetail_AddPro.add(tfBattery_AddPro);
		tfBattery_AddPro.setBounds(410, 90, 160, 20);
		panelDetail_AddPro.add(tfRAM_AddPro);
		tfRAM_AddPro.setBounds(90, 60, 130, 20);
		panelDetail_AddPro.add(tfCPU_AddPro);
		tfCPU_AddPro.setBounds(90, 90, 190, 20);
		panelDetail_AddPro.add(tfScreen_AddPro);
		tfScreen_AddPro.setBounds(90, 30, 190, 20);
		panelDetail_AddPro.add(tfCamera_AddPro);
		tfCamera_AddPro.setBounds(410, 30, 160, 20);
		panelDetail_AddPro.add(tfSdcard_AddPro);
		tfSdcard_AddPro.setBounds(410, 60, 160, 20);

		lblCamera_AddPro.setFont(new java.awt.Font("Calibri", 0, 16));
		lblCamera_AddPro.setText("Camera:");
		panelDetail_AddPro.add(lblCamera_AddPro);
		lblCamera_AddPro.setBounds(340, 30, 70, 20);

		emView_lblEmail10.setFont(new java.awt.Font("Calibri", 0, 16));
		emView_lblEmail10.setText("MP");
		panelDetail_AddPro.add(emView_lblEmail10);
		emView_lblEmail10.setBounds(580, 30, 30, 20);

		emView_lblEmail11.setFont(new java.awt.Font("Calibri", 0, 16));
		emView_lblEmail11.setText("GB");
		panelDetail_AddPro.add(emView_lblEmail11);
		emView_lblEmail11.setBounds(580, 60, 30, 20);

		cbbRAM_AddPro.setModel(new DefaultComboBoxModel(new String[] { "Item 1",
				"Item 2", "Item 3", "Item 4" }));
		panelDetail_AddPro.add(cbbRAM_AddPro);
		cbbRAM_AddPro.setBounds(230, 60, 50, 20);

		add(panelDetail_AddPro);
		panelDetail_AddPro.setBounds(0, 240, 680, 130);

		btnCancel_AddPro.setIcon(new ImageIcon("icon/cancle.png"));
		btnCancel_AddPro.setText("Cancel");
		add(btnCancel_AddPro);
		btnCancel_AddPro.setBounds(340, 380, 90, 30);

		btnAdd_AddPro.setIcon(new ImageIcon("icon/add.png"));
		btnAdd_AddPro.setText("Add");
		btnAdd_AddPro.setToolTipText("");
		add(btnAdd_AddPro);
		btnAdd_AddPro.setBounds(230, 380, 90, 30);
	}

}
